<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="language" content="en" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery.onebyone.css" />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/responsive.css" />
    <!-- custom CSS  -->
    <link rel="stylesheet" type="text/css" href=" <?php echo Yii::app()->request->baseUrl ; ?>/css/style.css"  />
    <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/rbac.css" />
    <!--[endif]-->

    <title><?php echo CHtml::encode($this->pageTitle); ?></title>

</head>

<body>
<div class="wraper">
    <header class="header">
        <nav >
            <!-- top menu -->
            <?php $this->widget('zii.widgets.CMenu',array(
                'activateParents'=>true,
                'items'=>array
                        (
                            array('label'=>'Site', 'url'=>array('/')),
                            array('label'=>'Модули', 'url'=>array('/adminzone/index/ext')),
                            array(   'label'=>'Управление','url'=>array('/adminzone'),
                                'items'=>array(
                                    array('label'=>'Управление пользователями', 'url'=>array('/user/admin')),
                                    array('label'=>'Управление ролями', 'url'=>array('/rbac/')),
                                    array('label'=>'Почта', 'url'=>array('/adminzone/index/mail')),
                                )
                            ),
                            array(   'label'=>'Магазин','url'=>array('/shop/admin/admin/index'),
                                'items'=>array(
                                    array('label'=>'Каталог продуктов', 'url'=>array('/shop/admin/product')),

                                )
                            ),
                            array('label'=>'Личный кабинет', 'url'=>array('/user/default'),
                                    'items'=>array(
                                        array('url'=>Yii::app()->getModule('user')->profileUrl, 'label'=>Yii::app()->getModule('user')->t("Profile"), 'visible'=>!Yii::app()->user->isGuest),
                                        array('label'=>'Профиль', 'url'=>array('/user/profile')),

                                    ),
                            ),
                            array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest),
                        ),
                 ));
            ?>
        </nav>
    </header>
</div>
<div class="text_bar2">
      <br><br>
</div>
    <div class="content_block">



        <div class="wraper">
            <?php echo $content; ?>
        </div>
    </div>


    <div class="text_bar2">
        <br><br>
    </div>
</body>
</html>